// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_WO_TASK_DETAIL
// * CreateDate    : 2014-06-05 18:30:23
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:23
// * LastChanger   : 2014-06-05 18:30:23
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class ProdWoTaskDetailEntity : EntityBase
    {
        public ProdWoTaskDetailTable TableSchema
        {
            get
            {
                return ProdWoTaskDetailTable.Current;
            }
		}
		
		public ProdWoTaskDetailEntity()
        {

        }
		
		public ProdWoTaskDetailEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.WoNo = Convert.ToString(CommonFunctions.ToObject(dr["WO_NO"]));
			this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
			this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["USER_NO"]));
			this.StartTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["START_TIME"]));
			this.EndTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["END_TIME"]));
			this.WorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["WORKGROUP_NO"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.ProdIndex = Convert.ToInt32(CommonFunctions.ToObject(dr["PROD_INDEX"]));
			this.PlanOrder = Convert.ToString(CommonFunctions.ToObject(dr["PLAN_ORDER"]));
        }
		
		public ProdWoTaskDetailEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.WoNo = Convert.ToString(CommonFunctions.ToObject(dr["WO_NO"]));
			this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
			this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["USER_NO"]));
			this.StartTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["START_TIME"]));
			this.EndTime = Convert.ToDateTime(CommonFunctions.ToObject(dr["END_TIME"]));
			this.WorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["WORKGROUP_NO"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.ProdIndex = Convert.ToInt32(CommonFunctions.ToObject(dr["PROD_INDEX"]));
			this.PlanOrder = Convert.ToString(CommonFunctions.ToObject(dr["PLAN_ORDER"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdWoTaskDetailTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(ProdWoTaskDetailTable.C_ID)); }
            set { SetData(ProdWoTaskDetailTable.C_ID, value); }
        }
		
        [DataMember]
        public string WoNo
        {
            get { return Convert.ToString(GetData(ProdWoTaskDetailTable.C_WO_NO)); }
            set { SetData(ProdWoTaskDetailTable.C_WO_NO, value); }
        }
		
        [DataMember]
        public int Sequence
        {
            get { return Convert.ToInt32(GetData(ProdWoTaskDetailTable.C_SEQUENCE)); }
            set { SetData(ProdWoTaskDetailTable.C_SEQUENCE, value); }
        }
		
        [DataMember]
        public string TechnicId
        {
            get { return Convert.ToString(GetData(ProdWoTaskDetailTable.C_TECHNIC_ID)); }
            set { SetData(ProdWoTaskDetailTable.C_TECHNIC_ID, value); }
        }
		
        [DataMember]
        public string UserNo
        {
            get { return Convert.ToString(GetData(ProdWoTaskDetailTable.C_USER_NO)); }
            set { SetData(ProdWoTaskDetailTable.C_USER_NO, value); }
        }
		
        [DataMember]
        public DateTime StartTime
        {
            get { return Convert.ToDateTime(GetData(ProdWoTaskDetailTable.C_START_TIME)); }
            set { SetData(ProdWoTaskDetailTable.C_START_TIME, value); }
        }
		
        [DataMember]
        public DateTime EndTime
        {
            get { return Convert.ToDateTime(GetData(ProdWoTaskDetailTable.C_END_TIME)); }
            set { SetData(ProdWoTaskDetailTable.C_END_TIME, value); }
        }
		
        [DataMember]
        public string WorkgroupNo
        {
            get { return Convert.ToString(GetData(ProdWoTaskDetailTable.C_WORKGROUP_NO)); }
            set { SetData(ProdWoTaskDetailTable.C_WORKGROUP_NO, value); }
        }
		
        [DataMember]
        public string Status
        {
            get { return Convert.ToString(GetData(ProdWoTaskDetailTable.C_STATUS)); }
            set { SetData(ProdWoTaskDetailTable.C_STATUS, value); }
        }
		
        [DataMember]
        public int ProdIndex
        {
            get { return Convert.ToInt32(GetData(ProdWoTaskDetailTable.C_PROD_INDEX)); }
            set { SetData(ProdWoTaskDetailTable.C_PROD_INDEX, value); }
        }
		
        [DataMember]
        public string PlanOrder
        {
            get { return Convert.ToString(GetData(ProdWoTaskDetailTable.C_PLAN_ORDER)); }
            set { SetData(ProdWoTaskDetailTable.C_PLAN_ORDER, value); }
        }
		
		#endregion
	}
	
	
}	

